﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Navigate : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Application["Test"] = 1;
        Session["MyTest1"] = -1;
        Response.Write((int)Session["MyTest1"]); 
        Response.Write(Request.Cookies["MyTest1"].Value);

        //Response.Write(Request.ApplicationPath + "|");

        //Response.Write(Request.FilePath + "|");
        //Response.Write(Request.Path + "|");
    }

    protected void menu1_MenuItemClick(object sender, MenuEventArgs e)
    {
        string s = e.Item.DataPath;
    }

    protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        string s = "";
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        MultiView1.SetActiveView(View3);
    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        if (Request.Cookies["MyTest"] != null)
            Response.Write("Have MyTest Cookies!");
    }

    protected void Button3_Click(object sender, EventArgs e)
    {

        //Response.Cookies["MyTest"]["Test1"] = "Hello_Test3";
        //Response.Cookies["MyTest"]["Test2"] = "Hello_Test4";
        //Response.Cookies["MyTest"].Path = Request.ApplicationPath + "/Css";
        //Response.Cookies["MyTest"].Expires = DateTime.Now.AddDays(1);
        Response.Cookies["Order1"]["SP1"] = "- 12 - 10000 - TongCong";
        Response.Cookies["Order1"]["SP2"] = "- 12 - 10000 - TongCong";
    }
}